<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>兴趣交友推荐 - 发现志同道合的朋友</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #f0f4ff;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            box-shadow: var(--shadow);
            background-color: white;
        }
        
        .container {
            padding: 2rem 0;
        }
        
        .section-header {
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
        }
        
        .section-subtitle {
            color: var(--secondary);
            max-width: 800px;
        }
        
        .filter-bar {
            background-color: white;
            border-radius: 0.75rem;
            padding: 1rem 1.5rem;
            box-shadow: var(--shadow);
            margin-bottom: 2rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 1rem;
        }
        
        .filter-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-label {
            font-weight: 500;
            color: var(--dark);
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .filter-tag {
            background-color: var(--light);
            color: var(--secondary);
            padding: 0.35rem 0.85rem;
            border-radius: 999px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
        }
        
        .filter-tag:hover, .filter-tag.active {
            background-color: var(--primary-light);
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .view-options {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .view-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--light);
            color: var(--secondary);
            border: none;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .view-btn.active {
            background-color: var(--primary);
            color: white;
        }
        
        /* 卡片通用样式 */
        .friend-card {
            background-color: white;
            border-radius: 1rem;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
            margin-bottom: 1.5rem;
        }
        
        .friend-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .card-content {
            padding: 1.25rem;
        }
        
        .interest-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            transition: color 0.2s;
        }
        
        .friend-card:hover .interest-title {
            color: var(--primary);
        }
        
        .interest-desc {
            color: var(--secondary);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .card-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--secondary);
            border-top: 1px solid var(--border);
            padding-top: 1rem;
            margin-top: 0.5rem;
        }
        
        .meta-stats {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .meta-stat {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .card-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            color: var(--secondary);
            background: none;
            border: none;
            font-size: 0.85rem;
            cursor: pointer;
            transition: color 0.2s;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }
        
        .action-btn:hover {
            color: var(--primary);
            background-color: var(--primary-light);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.saved {
            color: var(--primary);
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .user-name {
            font-weight: 500;
            font-size: 0.95rem;
        }
        
        .user-role {
            font-size: 0.75rem;
            color: var(--secondary);
        }
        
        /* 布局1: 单图/无图卡片 */
        .layout-1 .friend-card {
            display: flex;
            flex-direction: column;
        }
        
        .card-image {
            height: 180px;
            position: relative;
            overflow: hidden;
        }
        
        .card-image.no-image {
            height: 120px;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 2rem;
        }
        
        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        
        .friend-card:hover .card-image img {
            transform: scale(1.05);
        }
        
        /* 布局2: 多图卡片 */
        .layout-2 .friend-card {
            display: flex;
            flex-direction: column;
        }
        
        .image-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            height: 180px;
        }
        
        .image-grid img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .image-grid .img-1 {
            grid-column: span 2;
            grid-row: span 2;
        }
        
        /* 布局3: 左侧图片右侧内容 */
        .layout-3 .friend-card {
            display: flex;
            flex-direction: row;
            height: 220px;
        }
        
        .layout-3 .card-image {
            flex: 0 0 40%;
            height: 100%;
        }
        
        .layout-3 .card-content {
            flex: 0 0 60%;
            display: flex;
            flex-direction: column;
        }
        
        .layout-3 .interest-desc {
            -webkit-line-clamp: 3;
            flex-grow: 1;
        }
        
        /* 布局4: 紧凑列表 */
        .layout-4 .friend-card {
            display: flex;
            align-items: center;
            padding: 1rem;
            height: 120px;
        }
        
        .layout-4 .card-image {
            flex: 0 0 80px;
            height: 80px;
            margin-right: 1rem;
            border-radius: 0.5rem;
            overflow: hidden;
        }
        
        .layout-4 .card-content {
            flex: 1;
            padding: 0;
            display: flex;
            flex-direction: column;
        }
        
        .layout-4 .interest-desc {
            margin-bottom: 0.5rem;
            -webkit-line-clamp: 1;
        }
        
        .layout-4 .user-info {
            margin-bottom: 0.5rem;
        }
        
        .layout-4 .card-meta {
            padding-top: 0.5rem;
            margin-top: 0;
            border-top: none;
        }
        
        /* 布局切换 */
        .layout-view {
            display: none;
        }
        
        .layout-view.active {
            display: block;
        }
        
        .grid-columns-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }
        
        .grid-columns-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }
        
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .grid-columns-3 {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 992px) {
            .layout-3 .friend-card {
                flex-direction: column;
                height: auto;
            }
            
            .layout-3 .card-image,
            .layout-3 .card-content {
                flex: none;
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            .grid-columns-2,
            .grid-columns-3 {
                grid-template-columns: 1fr;
            }
            
            .filter-bar {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .view-options {
                margin-left: 0;
                align-self: flex-end;
            }
            
            .section-title {
                font-size: 1.75rem;
            }
        }
        
        @media (max-width: 576px) {
            .layout-4 .friend-card {
                flex-direction: column;
                height: auto;
                text-align: center;
            }
            
            .layout-4 .card-image {
                margin-right: 0;
                margin-bottom: 1rem;
            }
            
            .layout-4 .user-info {
                justify-content: center;
            }
            
            .card-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }
            
            .card-actions {
                align-self: flex-end;
                margin-top: -2rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-users text-primary me-2"></i>兴趣社交
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">兴趣测试</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">交友推荐</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">社区</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <button class="btn btn-outline-primary">登录</button>
                    <button class="btn btn-primary">注册</button>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主要内容区 -->
    <div class="container">
        <div class="section-header">
            <h1 class="section-title">兴趣交友推荐</h1>
            <p class="section-subtitle">发现与你志同道合的朋友，基于共同兴趣建立有意义的连接。浏览推荐，找到你的知己。</p>
        </div>
        
        <!-- 筛选栏 -->
        <div class="filter-bar">
            <div class="filter-group">
                <span class="filter-label">兴趣类别：</span>
                <div class="filter-options">
                    <div class="filter-tag active">全部</div>
                    <div class="filter-tag">音乐</div>
                    <div class="filter-tag">电影</div>
                    <div class="filter-tag">阅读</div>
                    <div class="filter-tag">运动</div>
                    <div class="filter-tag">美食</div>
                    <div class="filter-tag">旅行</div>
                    <div class="filter-tag">摄影</div>
                </div>
            </div>
            
            <div class="filter-group">
                <span class="filter-label">排序方式：</span>
                <div class="filter-options">
                    <div class="filter-tag active">推荐</div>
                    <div class="filter-tag">最新</div>
                    <div class="filter-tag">最热</div>
                    <div class="filter-tag">距离最近</div>
                </div>
            </div>
            
            <div class="view-options">
                <span class="filter-label">视图：</span>
                <button class="view-btn active" data-view="layout-1" title="网格布局(单图)">
                    <i class="fas fa-th-large"></i>
                </button>
                <button class="view-btn" data-view="layout-2" title="网格布局(多图)">
                    <i class="fas fa-th"></i>
                </button>
                <button class="view-btn" data-view="layout-3" title="图文并排">
                    <i class="fas fa-list"></i>
                </button>
                <button class="view-btn" data-view="layout-4" title="紧凑列表">
                    <i class="fas fa-list-ul"></i>
                </button>
            </div>
        </div>
        
        <!-- 布局1: 网格布局(单图/无图) -->
        <div class="layout-view layout-1 active grid-columns-3">
            <!-- 有图卡片 -->
            <div class="friend-card">
                <div class="card-image">
                    <img src="https://picsum.photos/600/400?random=1" alt="户外摄影爱好者聚会">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=101" alt="李明的头像" class="user-avatar">
                        <div>
                            <div class="user-name">李明</div>
                            <div class="user-role">户外摄影爱好者</div>
                        </div>
                    </div>
                    <h3 class="interest-title">周末户外摄影小组招募新成员</h3>
                    <p class="interest-desc">我们是一群热爱自然和摄影的朋友，每周末组织户外拍摄活动，欢迎摄影爱好者加入我们，一起交流技巧，捕捉美好瞬间。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>1.2k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>86</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>5km</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>128</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 无图卡片 -->
            <div class="friend-card">
                <div class="card-image no-image">
                    <i class="fas fa-music"></i>
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=102" alt="王芳的头像" class="user-avatar">
                        <div>
                            <div class="user-name">王芳</div>
                            <div class="user-role">独立音乐制作人</div>
                        </div>
                    </div>
                    <h3 class="interest-title">寻找电子音乐创作伙伴</h3>
                    <p class="interest-desc">正在创作一张电子音乐EP，寻找有共同音乐品味的伙伴一起合作，需要擅长旋律创作或编曲的朋友，有兴趣请联系我。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>856</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>42</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>12km</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                                <span>64</span>
                            </button>
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 有图卡片 -->
            <div class="friend-card">
                <div class="card-image">
                    <img src="https://picsum.photos/600/400?random=3" alt="读书会活动照片">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=103" alt="张伟的头像" class="user-avatar">
                        <div>
                            <div class="user-name">张伟</div>
                            <div class="user-role">文学爱好者</div>
                        </div>
                    </div>
                    <h3 class="interest-title">每月读书会 - 本月主题：科幻文学</h3>
                    <p class="interest-desc">每月一次的线下读书会，本月我们将讨论科幻文学的发展与影响，欢迎科幻爱好者参与，一起分享你喜欢的作品和观点。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>932</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>57</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>8km</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                                <span>78</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 无图卡片 -->
            <div class="friend-card">
                <div class="card-image no-image">
                    <i class="fas fa-utensils"></i>
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=104" alt="刘婷的头像" class="user-avatar">
                        <div>
                            <div class="user-name">刘婷</div>
                            <div class="user-role">美食博主</div>
                        </div>
                    </div>
                    <h3 class="interest-title">寻找美食探店搭档</h3>
                    <p class="interest-desc">喜欢探索城市里的隐藏美食，寻找同样热爱美食的朋友一起探店，分享美食体验，要求有良好的口味和乐于尝试的精神。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>1.5k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>103</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>3km</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>215</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 有图卡片 -->
            <div class="friend-card">
                <div class="card-image">
                    <img src="https://picsum.photos/600/400?random=5" alt="马拉松训练照片">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=105" alt="赵强的头像" class="user-avatar">
                        <div>
                            <div class="user-name">赵强</div>
                            <div class="user-role">马拉松爱好者</div>
                        </div>
                    </div>
                    <h3 class="interest-title">城市晨跑小组，每天5点集合</h3>
                    <p class="interest-desc">我们是一群坚持晨跑的爱好者，每天清晨5点在市中心广场集合，一起跑步锻炼，无论你是新手还是老手，都欢迎加入我们的队伍。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>765</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>38</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>6km</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                                <span>52</span>
                            </button>
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 有图卡片 -->
            <div class="friend-card">
                <div class="card-image">
                    <img src="https://picsum.photos/600/400?random=6" alt="电影放映活动">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=106" alt="陈雪的头像" class="user-avatar">
                        <div>
                            <div class="user-name">陈雪</div>
                            <div class="user-role">独立电影策展人</div>
                        </div>
                    </div>
                    <h3 class="interest-title">独立电影放映会，每周六晚7点</h3>
                    <p class="interest-desc">定期举办独立电影放映会，专注于展示国内外优秀的独立电影作品，放映后有导演交流环节，欢迎电影爱好者参与讨论。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>1.1k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>74</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>9km</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>156</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 布局2: 网格布局(多图) -->
        <div class="layout-view layout-2 grid-columns-2">
            <!-- 多图卡片 -->
            <div class="friend-card">
                <div class="image-grid">
                    <img src="https://picsum.photos/600/400?random=11" alt="登山活动照片1" class="img-1">
                    <img src="https://picsum.photos/600/400?random=12" alt="登山活动照片2">
                    <img src="https://picsum.photos/600/400?random=13" alt="登山活动照片3">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=111" alt="林达的头像" class="user-avatar">
                        <div>
                            <div class="user-name">林达</div>
                            <div class="user-role">登山爱好者</div>
                        </div>
                    </div>
                    <h3 class="interest-title">周末登山小队，招募新成员</h3>
                    <p class="interest-desc">每月组织2-3次登山活动，难度适中，适合有一定体能的爱好者，提供装备建议和安全指导，新队员有老队员带领。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>1.8k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>124</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>256</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 多图卡片 -->
            <div class="friend-card">
                <div class="image-grid">
                    <img src="https://picsum.photos/600/400?random=14" alt="手工制作照片1" class="img-1">
                    <img src="https://picsum.photos/600/400?random=15" alt="手工制作照片2">
                    <img src="https://picsum.photos/600/400?random=16" alt="手工制作照片3">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=112" alt="黄莺的头像" class="user-avatar">
                        <div>
                            <div class="user-name">黄莺</div>
                            <div class="user-role">手工艺术家</div>
                        </div>
                    </div>
                    <h3 class="interest-title">手工爱好者交流会，每周日下午</h3>
                    <p class="interest-desc">一起学习和交流手工制作技巧，包括陶艺、编织、纸艺等多种形式，材料自备或现场购买，适合各种水平的爱好者。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>1.3k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>98</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                                <span>187</span>
                            </button>
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 多图卡片 -->
            <div class="friend-card">
                <div class="image-grid">
                    <img src="https://picsum.photos/600/400?random=17" alt="咖啡品鉴照片1" class="img-1">
                    <img src="https://picsum.photos/600/400?random=18" alt="咖啡品鉴照片2">
                    <img src="https://picsum.photos/600/400?random=19" alt="咖啡品鉴照片3">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=113" alt="吴健的头像" class="user-avatar">
                        <div>
                            <div class="user-name">吴健</div>
                            <div class="user-role">咖啡师</div>
                        </div>
                    </div>
                    <h3 class="interest-title">精品咖啡品鉴会，探索世界各地咖啡豆</h3>
                    <p class="interest-desc">每月举办一次精品咖啡品鉴活动，介绍不同产区的咖啡豆特点和冲泡方法，适合咖啡爱好者深入了解咖啡文化。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>2.1k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>156</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>324</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 多图卡片 -->
            <div class="friend-card">
                <div class="image-grid">
                    <img src="https://picsum.photos/600/400?random=20" alt="绘画活动照片1" class="img-1">
                    <img src="https://picsum.photos/600/400?random=21" alt="绘画活动照片2">
                    <img src="https://picsum.photos/600/400?random=22" alt="绘画活动照片3">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=114" alt="孙艺的头像" class="user-avatar">
                        <div>
                            <div class="user-name">孙艺</div>
                            <div class="user-role">美术教师</div>
                        </div>
                    </div>
                    <h3 class="interest-title">户外写生小组，寻找绘画伙伴</h3>
                    <p class="interest-desc">每周组织一次户外写生活动，在城市公园或郊外进行，互相学习交流绘画技巧，无论你擅长哪种风格都欢迎加入。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>1.5k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>87</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                                <span>203</span>
                            </button>
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 布局3: 图文并排 -->
        <div class="layout-view layout-3">
            <!-- 图文并排卡片 -->
            <div class="friend-card">
                <div class="card-image">
                    <img src="https://picsum.photos/600/400?random=31" alt="编程学习小组">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=121" alt="郑华的头像" class="user-avatar">
                        <div>
                            <div class="user-name">郑华</div>
                            <div class="user-role">全栈开发者</div>
                        </div>
                    </div>
                    <h3 class="interest-title">编程学习小组，每周线上分享会</h3>
                    <p class="interest-desc">我们是一群热爱编程的开发者，从初学者到专业开发者都有，每周举行线上技术分享会，一起学习新的编程语言和框架，解决编程难题，欢迎加入我们共同进步。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>3.2k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>215</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-users"></i>
                                <span>156人加入</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>487</span>
                            </button>
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i>
                            </button>
                            <button class="action-btn btn btn-primary btn-sm">
                                <i class="fas fa-user-plus"></i> 加入
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 图文并排卡片(无图) -->
            <div class="friend-card">
                <div class="card-image no-image">
                    <i class="fas fa-podcast"></i>
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=122" alt="周明的头像" class="user-avatar">
                        <div>
                            <div class="user-name">周明</div>
                            <div class="user-role">播客主持人</div>
                        </div>
                    </div>
                    <h3 class="interest-title">寻找播客嘉宾，讨论科技与未来</h3>
                    <p class="interest-desc">我的播客专注于科技发展与未来趋势，目前正在寻找不同领域的专业人士作为嘉宾，分享你的见解和观点，不需要有播客经验，只要对科技有独特看法即可。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>1.7k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>98</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-microphone"></i>
                                <span>32期节目</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                                <span>231</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                            <button class="action-btn btn btn-primary btn-sm">
                                <i class="fas fa-handshake"></i> 合作
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 图文并排卡片 -->
            <div class="friend-card">
                <div class="card-image">
                    <img src="https://picsum.photos/600/400?random=33" alt="环保志愿者活动">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=123" alt="吴青的头像" class="user-avatar">
                        <div>
                            <div class="user-name">吴青</div>
                            <div class="user-role">环保志愿者</div>
                        </div>
                    </div>
                    <h3 class="interest-title">城市环保行动，每月清洁活动</h3>
                    <p class="interest-desc">我们是一群关注环境保护的志愿者，每月组织城市清洁活动，清理公园和河岸的垃圾，宣传环保知识，希望更多有环保意识的朋友加入我们，一起守护城市的美丽。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>2.8k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>176</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-users"></i>
                                <span>203人加入</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>521</span>
                            </button>
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i>
                            </button>
                            <button class="action-btn btn btn-primary btn-sm">
                                <i class="fas fa-user-plus"></i> 加入
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 布局4: 紧凑列表 -->
        <div class="layout-view layout-4">
            <!-- 紧凑列表项 -->
            <div class="friend-card">
                <div class="card-image">
                    <img src="https://picsum.photos/600/400?random=41" alt="瑜伽课程">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=131" alt="林瑜伽的头像" class="user-avatar">
                        <div>
                            <div class="user-name">林瑜伽</div>
                            <div class="user-role">瑜伽教练</div>
                        </div>
                    </div>
                    <h3 class="interest-title">早晨瑜伽练习小组，寻找同伴</h3>
                    <p class="interest-desc">每天早晨6点在中央公园进行瑜伽练习，适合各种水平的练习者，有专业指导，免费参加。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>1.2k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>78</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-heart"></i>
                                <span>156</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                            <button class="action-btn btn btn-primary btn-sm">
                                <i class="fas fa-user-plus"></i> 加入
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 紧凑列表项(无图) -->
            <div class="friend-card">
                <div class="card-image no-image">
                    <i class="fas fa-chess"></i>
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=132" alt="王棋的头像" class="user-avatar">
                        <div>
                            <div class="user-name">王棋</div>
                            <div class="user-role">国际象棋爱好者</div>
                        </div>
                    </div>
                    <h3 class="interest-title">周末国际象棋交流会，寻找对手</h3>
                    <p class="interest-desc">每周六下午在图书馆举办国际象棋交流活动，无论水平高低，只要喜欢下棋都可以参加，互相学习提高。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>856</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>43</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-heart"></i>
                                <span>92</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                            <button class="action-btn btn btn-primary btn-sm">
                                <i class="fas fa-user-plus"></i> 加入
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 紧凑列表项 -->
            <div class="friend-card">
                <div class="card-image">
                    <img src="https://picsum.photos/600/400?random=43" alt="写作小组">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=133" alt="张写的头像" class="user-avatar">
                        <div>
                            <div class="user-name">张写</div>
                            <div class="user-role">自由撰稿人</div>
                        </div>
                    </div>
                    <h3 class="interest-title">创意写作小组，寻找志同道合的写作者</h3>
                    <p class="interest-desc">每周组织一次写作交流会，分享自己的作品，互相点评和建议，帮助彼此提高写作水平，无论你写小说、散文还是诗歌都欢迎。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>1.5k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>107</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-heart"></i>
                                <span>215</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                            <button class="action-btn btn btn-primary btn-sm">
                                <i class="fas fa-user-plus"></i> 加入
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 紧凑列表项 -->
            <div class="friend-card">
                <div class="card-image">
                    <img src="https://picsum.photos/600/400?random=44" alt="宠物爱好者聚会">
                </div>
                <div class="card-content">
                    <div class="user-info">
                        <img src="https://picsum.photos/100/100?random=134" alt="刘宠的头像" class="user-avatar">
                        <div>
                            <div class="user-name">刘宠</div>
                            <div class="user-role">宠物训练师</div>
                        </div>
                    </div>
                    <h3 class="interest-title">宠物爱好者聚会，每月宠物公园活动</h3>
                    <p class="interest-desc">为宠物主人和他们的宠物提供社交机会，交流养宠经验，进行宠物训练分享，有专业兽医提供咨询。</p>
                    <div class="card-meta">
                        <div class="meta-stats">
                            <div class="meta-stat">
                                <i class="fas fa-eye"></i>
                                <span>2.3k</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-comment"></i>
                                <span>168</span>
                            </div>
                            <div class="meta-stat">
                                <i class="fas fa-heart"></i>
                                <span>342</span>
                            </div>
                        </div>
                        <div class="card-actions">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                            </button>
                            <button class="action-btn btn btn-primary btn-sm">
                                <i class="fas fa-user-plus"></i> 加入
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多 -->
        <div class="text-center mt-5">
            <button class="btn btn-outline-primary btn-lg">
                <i class="fas fa-sync-alt me-2"></i>加载更多推荐
            </button>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 布局切换功能
            const viewButtons = document.querySelectorAll('.view-btn');
            const layoutViews = document.querySelectorAll('.layout-view');
            
            viewButtons.forEach(button => {
                button.addEventListener('click', function() {
                    // 移除所有按钮的active类
                    viewButtons.forEach(btn => btn.classList.remove('active'));
                    // 给当前点击的按钮添加active类
                    this.classList.add('active');
                    
                    // 获取要显示的布局
                    const viewToShow = this.getAttribute('data-view');
                    
                    // 隐藏所有布局
                    layoutViews.forEach(view => view.classList.remove('active'));
                    
                    // 显示选中的布局
                    document.querySelector(`.${viewToShow}`).classList.add('active');
                });
            });
            
            // 筛选标签功能
            const filterTags = document.querySelectorAll('.filter-tag');
            
            filterTags.forEach(tag => {
                tag.addEventListener('click', function() {
                    // 找到同一组中的所有标签
                    const parentGroup = this.closest('.filter-options');
                    
                    // 移除同一组中所有标签的active类
                    parentGroup.querySelectorAll('.filter-tag').forEach(t => t.classList.remove('active'));
                    
                    // 给当前点击的标签添加active类
                    this.classList.add('active');
                });
            });
            
            // 点赞功能
            const likeButtons = document.querySelectorAll('.action-btn:not(.saved)');
            
            likeButtons.forEach(button => {
                if (button.querySelector('.fa-heart')) {
                    button.addEventListener('click', function() {
                        const icon = this.querySelector('i');
                        const countElement = this.querySelector('span');
                        
                        if (this.classList.contains('liked')) {
                            // 取消点赞
                            this.classList.remove('liked');
                            icon.classList.remove('fas');
                            icon.classList.add('far');
                            
                            // 更新点赞数
                            if (countElement) {
                                let count = parseInt(countElement.textContent);
                                countElement.textContent = count - 1;
                            }
                        } else {
                            // 点赞
                            this.classList.add('liked');
                            icon.classList.remove('far');
                            icon.classList.add('fas');
                            
                            // 更新点赞数
                            if (countElement) {
                                let count = parseInt(countElement.textContent);
                                countElement.textContent = count + 1;
                            }
                        }
                    });
                }
            });
            
            // 收藏功能
            const saveButtons = document.querySelectorAll('.action-btn:has(.fa-bookmark)');
            
            saveButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    
                    if (this.classList.contains('saved')) {
                        // 取消收藏
                        this.classList.remove('saved');
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                    } else {
                        // 收藏
                        this.classList.add('saved');
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                    }
                });
            });
            
            // 加入/合作按钮功能
            const joinButtons = document.querySelectorAll('.btn-primary.btn-sm');
            
            joinButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const actionText = this.textContent.trim();
                    const interestTitle = this.closest('.friend-card').querySelector('.interest-title').textContent;
                    
                    alert(`你已${actionText} "${interestTitle}"\n在实际应用中，这里会处理加入/合作请求`);
                });
            });
            
            // 加载更多按钮功能
            document.querySelector('.btn-outline-primary.btn-lg').addEventListener('click', function() {
                this.innerHTML = '<i class="fas fa-spinner fa-spin me-2"></i>加载中...';
                
                // 模拟加载延迟
                setTimeout(() => {
                    this.innerHTML = '<i class="fas fa-sync-alt me-2"></i>加载更多推荐';
                    alert('已加载所有推荐内容');
                }, 1500);
            });
        });
    </script>
</body>
</html>

